import { useToast as uToast, UseToastOptions } from '@chakra-ui/react';

export const useToast = (props?: UseToastOptions) => {
  const toast = uToast({
    position: 'top',
    duration: 2000,
    ...(props && props),
  });

  return {
    toast,
  };
};
